var app=getApp();
Page({
  data: {
    // 用户信息
    userInfo: '',
    windowWidth:0,/**屏幕宽度*/
    windowHeight:0,/**屏幕高度*/
    myMenus: [{
      icon: '../images/ico_user_wallet.png',
      text: '我的钱包',
      bindtap: "movetoWallet",
      url: '../wallet/index'
    }, {
      icon: '../images/ico_record.png',
      text: '充电记录',
      bindtap: "movetoOrders",
      url: '../order/index'
    }, {
      icon: '../images/ico_help.png',
      text: '常见问题',
      bindtap: "movetoFeedback",
      url: '../feedback/index'
    }]
  },
  // 页面加载
  onLoad: function () {
    // 设置本页导航标题
    wx.setNavigationBarTitle({
      title: '个人中心'
    })
      this.setData({
          userInfo:app.globalData.userInfo,
          windowWidth: wx.getStorageSync("kScreenW"),
          windowHeight: wx.getStorageSync("kScreenH")
      })
  },
  // 切换账号
  bindAction: function () {
      wx.navigateTo({
          url: '../login/index'
      })
  }
})